/* eslint-disable */
import {
    axios
} from '@/utils/request';
const api = {
    call:"/share-parking/web/personCenter/call", //联系客服
    userEvaluate: "/share-parking/web/evaluate/userEvaluate", //用户评价
    withdraw: "/share-parking/web/personCenter/withdraw", //撤回退租申请
    cancelApply:"/share-parking/web/personCenter/cancelApply", //申请退租
    cancelReply: "/share-parking/web/personCenter/cancelReply", //退租申请回复（同意|拒绝）
    mySpaceList:"/share-parking/web/personCenter/mySpaceList", //我的车位
    changeSaleStatus: "/share-parking/web/plmRelease/changeSaleStatus", //车位上下架
    myCarOrderLog:"/share-parking/web/personCenter/myCarOrderLog", //我的订单列表查询（车主|车位主）
}

export function myUnitList(parameter) {
    return axios({
        url: api.myUnitList,
        params: parameter,//params
        method: 'get'
    })
}

export function userEvaluate(parameter) {
    return axios({
        url: api.userEvaluate,
        data: parameter,//params
        method: 'post'
    })
}

export function withdraw(parameter) {
    return axios({
        url: api.withdraw,
        data: parameter,//params
        method: 'post'
    })
}

export function cancelApply(parameter) {
    return axios({
        url: api.cancelApply,
        params: parameter,//params
        method: 'get'
    })
}

export function cancelReply(parameter) {
    return axios({
        url: api.cancelReply,
        params: parameter,//params
        method: 'get'
    })
}

export function mySpaceList(parameter) {
    return axios({
        url: api.mySpaceList,
        params: parameter,//params
        method: 'get'
    })
}

export function changeSaleStatus(parameter) {
    return axios({
        url: api.changeSaleStatus,
        data: parameter,//params
        method: 'post'
    })
}
    
export function myCarOrderLog(parameter) {
    return axios({
        url: api.myCarOrderLog,
        data: parameter,//params
        method: 'post'
    })
}